package com.lin.controller;

import com.lin.common.Result;
import com.lin.service.MoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class MoneyController {

    @Autowired
    private MoneyService moneyService;

    @GetMapping("/moneyTI")
    public Result getTI() {
        return Result.success(moneyService.getTIStatistics());
    }
}
